#!/bin/bash
#
# Volodymyr P. Sergiievskyi
#
#  splitPages <file> <prefix>
#
#
# SplitPages, divided by $'\x0c' symbol to the separate files
# names of the files begin with <prefix> and have extention '.txt'


N=0
IFS=$'\x0c'
for P in $(cat $1)
do
	N=$((N+1))
	echo $P > $2$N.txt
done


